import request from './index.js' //引入http.js
const api = request
/*上传照片*/
export const uploadFilePromise = (params) => api.request('/common/upload', 'POST', params, true)
// export const uploadFile = (params) => api.request('', 'POST', params, true, 'file')




export const login = (params) => api.request('/user/login', 'POST', params) //配置
export const getHomeindex = (params) => api.request('/index/index', 'GET', params) //配置
export const getshowList = (params) => api.request('/index/show_list', 'GET', params) //配置
export const getshowMsg = (params) => api.request('/index/show_msg', 'POST', params) //配置
export const getactiveList = (params) => api.request('/index/active_list', 'GET', params) //配置
export const active_msg = (params) => api.request('/index/active_msg', 'POST', params) //配置
export const gonggao_list = (params) => api.request('/index/gonggao_list', 'GET', params) //配置
export const gonggao_msg = (params) => api.request('/index/gonggao_msg', 'POST', params) //配置
export const answer = (params) => api.request('/index/answer', 'GET', params) //配置
export const user_answer = (params) => api.request('/index/user_answer', 'POST', params) //配置
export const getuserinfo = (params) => api.request('/user/index', 'POST', params) //配置
export const open_card = (params) => api.request('/card/open_card', 'POST', params) //配置
export const card_list = (params) => api.request('/card/card_list', 'GET', params) //配置
export const open_card_log = (params) => api.request('/card/open_card_log', 'GET', params) //配置
export const open_card_log_msg = (params) => api.request('/card/open_card_log_msg', 'GET', params) //配置
export const score_list = (params) => api.request('/user/score_list', 'GET', params) //配置
export const withdraw = (params) => api.request('/user/withdraw', 'POST', params) //配置
export const open_card_log_del = (params) => api.request('/card/open_card_log_del', 'POST', params) //配置
export const son_list = (params) => api.request('/agent/son_list', 'POST', params) //配置
export const transfer_card = (params) => api.request('/card/transfer_card', 'POST', params) //配置
export const card_log = (params) => api.request('/card/card_log', 'POST', params) //配置
export const card_open_log = (params) => api.request('/card/card_open_log', 'POST', params) //配置
export const transfer_card_log = (params) => api.request('/card/transfer_card_log', 'POST', params) //配置
export const son_msg = (params) => api.request('/agent/son_msg', 'POST', params) //配置
export const son_open = (params) => api.request('/agent/son_open', 'POST', params) //配置
export const profile = (params) => api.request('/user/profile', 'POST', params) //配置
export const register = (params) => api.request('/user/register', 'POST', params) //配置
export const resetpwd = (params) => api.request('/user/resetpwd', 'POST', params) //配置
export const card_import = (params) => api.request('/card/card_import', 'POST', params) //配置

